<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.pengtu.security.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>发文档案</title>
<script>
	function changeDraft() {
		var url = "<c:url value='/account/json/userchooses.action'/>";
		var obj = new Object();
		mm = window
				.showModalDialog(
						url,
						obj,
						'dialogHeight:400px;dialogWidth:600px;status:no;toolbar:no;resizable:no;menubar:no;location:no;scrollbars:no;dialogLeft:'
								+ (screen.width / 2.0 - 150) + ',dialogTop:170')
		if (mm != null) {
			$("input[name='draft']").val(mm);
		}
	}
	
	function changeSigner() {
		var url = "<c:url value='/account/json/userchooses.action'/>";
		var obj = new Object();
		mm = window
				.showModalDialog(
						url,
						obj,
						'dialogHeight:400px;dialogWidth:600px;status:no;toolbar:no;resizable:no;menubar:no;location:no;scrollbars:no;dialogLeft:'
								+ (screen.width / 2.0 - 150) + ',dialogTop:170')
		if (mm != null) {
			$("input[name='signer']").val(mm);
		}
	}
</script>
</head>
<body>
	<h2>
		<s:if test="id == null">创建</s:if>
		<s:else>修改</s:else>
		发文档案
	</h2>
	<form action="convey_arc!save.action" class="yform" id="conveyarc">
		<input type="hidden" id="id" name="id" value="${id }"/>
		<table class="noborder">
			<tr class="type-text">
				<td>发文文号</td>
				<td><input type="text" name="num" value="${num }"/></td>
			</tr>
			<tr class="type-text">
				<td>发文标题</td>
				<td><input type="text" name="title" value="${title }"/></td>
			</tr>
			<tr class="type-text">
				<td>拟稿人</td>
				<td><input type="text" name="draft" value="${draft }"/><input type="button" onclick="changeDraft()" value="选择"/></td>
			</tr>
			<tr class="type-text">
				<td>签发人</td>
				<td><input type="text" name="signer" value="${signer }"/><input type="button" onclick="changeSigner()" value="选择"/></td>
			</tr>
			<tr class="type-text">
				<td>备注</td>
				<td><textarea name="remark">${remark }</textarea></td>
			</tr>
			<tr class="type-text">
				<td>附件</td>
				<td><input type="file" name="annex" value="${annex }"/></td>
			</tr>
			<tr>
				<td colspan="2">
					<div class="type-button">
						<security:authorize ifAnyGranted="ROLE_修改用户">
							<input   type="submit" class="submit" value="保存" />&nbsp;
					</security:authorize>
						<input
						type="button" onclick="JavaScript:window.close();" value="关闭" />
					</div>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>